﻿using System;
using System.ServiceModel.Activation;
using System.Web;
using System.Web.Routing;

namespace EnglishRemix.Services
{
    public class Global : HttpApplication
    {
        void Application_Start(object sender, EventArgs e)
        {
            RegisterRoutes();
            //TODO: 
            //Initialization all web site
            //Read UserInfo and Device 
            //Life cycle is same as IS until IS restart
            //pop the hashtable in here, but the validation is in isValid method
            log4net.Config.XmlConfigurator.Configure();
        }

        private void RegisterRoutes()
        {
            // Edit the base address of Service1 by replacing the "Service1" string below
            RouteTable.Routes.Add(new ServiceRoute("EnglishRemixBookService", new WebServiceHostFactory(), typeof(EnglishRemixBookService)));
        }
    }
}
